package com.GraduationDesign.backend.po;

import com.GraduationDesign.backend.enums.ChangeFileType;
import com.GraduationDesign.backend.enums.ChangeType;
import com.sun.crypto.provider.BlowfishKeyGenerator;
import lombok.Data;

import java.util.List;

/**
 * @author: wzx
 * @date: 2022/4/14
 */
@Data
public class BlockInfo implements Comparable<BlockInfo>{
    Integer id;
    Integer reviewId;
    Integer codeId;
    Integer groupId;
    String filePath;
    Integer beginLine;
    Integer endLine;
    ChangeType type;
    String description;
    TempLink link;
    ChangeFileType fileType;
    List<Comment> comment;
    Integer length;

    @Override
    public int compareTo(BlockInfo o) {
        return o.length - this.length;
    }
}
